import request from '@/utils/request'

// 查询岗位列表
export function listPost(query) {
  return request({
    url: '/system/volunteer/list',
    method: 'get',
    params: query
  })
}
export function getPost(vId) {
  return request({
    url: '/system/volunteer/' + vId,
    method: 'get'
  })
}

export function addPost(data) {
  return request({
    url: '/system/volunteer',
    method: 'post',
    data: data
  })
}
export function updatePost(data) {
  return request({
    url: '/system/volunteer',
    method: 'put',
    data: data
  })
}

export function delPost(vId) {
  return request({
    url: '/system/volunteer/' + vId,
    method: 'delete'
  })
}
export function schoolFind(c_name) {
  return request({
    url: '/system/collage_department/find/' +c_name,
    method: 'get'
  })
}
export function schoolFindTwo(c_name,d_name) {
  return request({
    url: '/system/collage_department/find/' +c_name+'/'+d_name,
    method: 'get'
  })
}
export function listPosts(name) {
  return request({
    url: '/system/college/list/'+name,
    method: 'get'
  })
}
export function schoolPosts(c_name,d_name) {
  return request({
    url: '/system/department/list/'+c_name+'/'+d_name,
    method: 'get'
  })
}
